<template>
	<view class="page" :style="{'min-height':h+'px','padding-top':(mt)+'px'}">
		<c-nav-bar1 :title="titles"></c-nav-bar1>
		<view class="bg"></view>
		<view class="content" v-if="getalllist">
			<view class="head">
				<text class="status disabled" v-if="getalllist.orderStatus=='0'">待支付</text>
				<text class="status disabled" v-if="getalllist.orderStatus=='-1'">已取消</text>
				<text class="status s2" v-if="getalllist.orderStatus=='4'">已预订</text>
				<text class="status s3" v-if="getalllist.orderStatus=='-3'">已退款</text>
				<text class="status s3" v-if="getalllist.orderStatus=='3'">已使用</text>
			</view>
			<view class="hand-title" v-if="getalllist.orderStatus=='4'">
				请在{{getalllist.activityEndTime.substring(0,16)}}日(含)前到店消费
			</view>
			<view class="hand-title" v-if="getalllist.orderStatus=='0'">
				<block v-if="djsTime">
					<uCountDown text="剩余支付时间：" color="#ffffff" :fontSize="24" @finish="finish" :djsTime="djsTime" />
				</block>
				<block v-else></block>
			</view>
			<view class="hand-title" v-if="getalllist.orderStatus=='3'">
				核销时间：{{getalllist.writeOffTime.substring(0,16)}}
			</view>
			<view class="hand-title" v-if="getalllist.orderStatus=='-1'">
				您已取消待支付的订单
			</view>

			<view class="ticketInfonmb">
				<view class="taocan">
					<view class="taocan1">
						<image :src="getalllist.productImg&&getalllist.productImg.split(',')[0]" mode=""></image>
					</view>
					<view class="taocan2">
						<view class="taoxxq1">
							{{getalllist.productName}}
						</view>
						<view class="taoxxq2">
							{{getalllist.noticeOne||''}}
						</view>
						<view class="taoxxq3">
							<view class="jiage1">
								<span>￥</span> {{getalllist.realityPay}}
							</view>

						</view>
					</view>
				</view>
			</view>

			<view class="ticketInfo" v-if="getalllist.orderStatus=='4'">
				<view class="pjm">
					<view class="pjm1">
						凭证码
					</view>
					<view class="pjm2">
						凭二维码到店核销使用
					</view>
				</view>
				<view class="erweima">
					<u--image :src="getalllist.qrCode" width="280rpx" height="280rpx"></u--image>
				</view>
				<view class="daoqi">
					{{getalllist.activityEndTime.substring(0,10)}}到期
				</view>
			</view>
			<!-- 订单信息 -->
			<view class="basicInfo">
				<view class="chaoji">
					套餐明细
				</view>
				<view class="taocanmx">
					<view class="taocanlistmx" v-if="getalllist.productsDetail"
						v-for="(item,index) in JSON.parse(getalllist.productsDetail)" :key="index">
						<view class="taocanlistmx1">
							*{{item.name}}
						</view>
						<view class="taocanlistmx2">
							（{{item.number}}份）
						</view>
						<view class="taocanlistmx3">
							¥{{item.price}}
						</view>
					</view>


				</view>
				<view class="chaoji" style="margin: 20rpx 0;">
					购买须知
				</view>
				<view class="xuzhi">
					<view class="xuzhi1">
						有效期
					</view>
					<view class="xuzhi2" style="margin-top: 12rpx;">
						{{getalllist.activityStartTime.slice(0,16)}}至{{getalllist.activityEndTime.slice(0,16)}}
					</view>
				</view>
				<view class="chaoji" style="margin: 40rpx 0 0 0;">
					规则说明
				</view>
				<view class="xianzhi">
					<view class="xianzhi1">
						使用规则
					</view>
					<view class="xianzhi2" style="margin-top: 12rpx;">
						<view class="yyyue1new" v-if="getalllist.useRule"
							v-for="(item,index) in JSON.parse(getalllist.useRule)" :key="index">
							*{{item.useRule}}
						</view>
					</view>
				</view>
				<view class="xianzhi">
					<view class="xianzhi1">
						退款说明
					</view>
					<view class="xianzhi2">
						*{{getalllist.refundRemark}}
					</view>
				</view>
			</view>


			<view class="basicInfo" style="margin:20rpx auto">
				<view class="chaoji" style="margin: 36rpx 0 40rpx 0;">
					适用商户
				</view>
				<view class="canyu">
					<view class="canyu1">
						<image :src="getalllist.storeFrontPic&&getalllist.storeFrontPic.split(',')[0]" mode=""></image>
					</view>
					<view class="canyu2">
						<view class="papdang1">
							<view class="haixian1">
								<view class="xhpd1">
									{{getalllist.merchantName}}
								</view>
								<view class="xhpd2">
									<view class="xhpd2new">
										{{getalllist.foodTypeName}}
									</view>
									<view class="xhpd2new">
										{{getalllist.islandName}}
									</view>
								</view>
							</view>
							<view class="haixian2" @click="phone">
								<u--image src="https://i.ringzle.com/file/20240313/a03fb2d09dcd4ca29f4a3467024d28ca.png"
									width="56rpx" height="56rpx"></u--image>
							</view>
						</view>
						<view class="papdang2">
							<view class="yingyez1">
								营业中
							</view>
							<view class="yingyez2">
								{{getalllist.openDate}}
							</view>
						</view>
						<view class="papdang3">
							<view class="dizhinew1">
								<u--image src="https://i.ringzle.com/file/20240313/7fec127b4f6f494daa6a3df04d711487.png"
									width="20rpx" height="25rpx"></u--image>
							</view>
							<view class="dizhinew2">
								{{getalllist.areaDetail}}
							</view>
						</view>
					</view>
				</view>
			</view>
			<view class="basicInfo">
				<view class="chaoji" style="margin: 36rpx 0 40rpx 0;">
					订单信息
				</view>
				<view class="dingdanxinxi">
					<view class="dingdanxinxi1">
						<view class="dingdanxinxi2">
							订单编号
						</view>
						<view class="dingdanxinxi3">
							{{getalllist.orderCode}}
						</view>
						<view slot="right-icon" class="icon"
							style="border: 1rpx solid #007A69; border-radius: 50rpx; box-sizing: border-box; color: #007A69;padding: 2rpx 10rpx; font-size: 22rpx;margin-top: 16rpx; font-weight: Regular;height: 38rpx;"
							@tap="copyOrderNo(getalllist)">复制</view>
					</view>
					<view class="dingdanxinxi1" v-if="getalllist.orderStatus=='4'">
						<view class="dingdanxinxi2">
							付款时间
						</view>
						<view class="dingdanxinxi3">
							{{getalllist.paymentTime}}
						</view>
					</view>
					<view class="dingdanxinxi1" v-if="getalllist.orderStatus=='3'">
						<view class="dingdanxinxi2">
							核销时间
						</view>
						<view class="dingdanxinxi3">
							{{getalllist.writeOffTime}}
						</view>
					</view>
					<view class="dingdanxinxi1">
						<view class="dingdanxinxi2">
							订单总价
						</view>
						<view class="dingdanxinxi3">
							¥{{getalllist.realityPay}}
						</view>
					</view>
					<view class="dingdanxinxi1">
						<view class="dingdanxinxi2">
							实际付款
						</view>
						<view class="dingdanxinxi3">
							¥{{getalllist.orderRealityPay}}
						</view>
					</view>
					<view class="dingdanxinxi1">
						<view class="dingdanxinxi2">
							联系方式
						</view>
						<view class="dingdanxinxi3">
							{{getalllist.guestPhoneCopy}}
						</view>
						<view class="d_sqtk" @click="GoRefund" v-if="getalllist.orderStatus==4">申请退款</view>
					</view>
				</view>
			</view>

		</view>
		<view class="btns">
			<!-- 待使用 -->
			<template v-if="getalllist.orderStatus==4">
				<!-- <view class="" style="color:#fff ; border-color: #007A69; background-color: #007A69;" @click="GoRefund">
					申请退款
				</view> -->
				<view class="" style="color:#fff ; border-color: #007A69; background-color: #007A69;width: 686rpx;"
					@click="applyAfterSales(list)">
					再来一单
				</view>
			</template>
			<!-- 待支付 -->
			<template v-if="getalllist.orderStatus==0">
				<view class="" style="color:#fff ; border-color: #007A69; background-color: #007A69;"
					@click="cancelOrder">
					取消订单
				</view>
				<view class="" @click="pay" style="color:#fff ; border-color: #007A69; background-color: #007A69;">
					立即支付
				</view>
			</template>
			<!-- 已使用 -->
			<template v-if="getalllist.orderStatus==3">
				<view @tap.stop="deleteOrder(list)" class="btn_blue">删除订单</view>
				<view @click.stop="toEvaluate(list)"
					style="color:#fff ; border-color: #007A69; background-color: #007A69;">
					评价
				</view>
				<view class="" style="color:#fff ; border-color: #007A69; background-color: #007A69; width: 686rpx;"
					@click="applyAfterSales(list)">
					再来一单
				</view>
			</template>
			<!--已关闭 -->
			<template v-if="getalllist.orderStatus==-1">
				<view @tap.stop="deleteOrder(list)" class="btn_blue">删除订单</view>
				<view class="" style="color:#fff ; border-color: #007A69; background-color: #007A69; width: 686rpx;"
					@click="applyAfterSales(list)">
					再来一单
				</view>
			</template>
			<!--已退款 -->
			<template v-if="getalllist.orderStatus==-3">
				<view @tap.stop="deleteOrder(list)" class="btn_blue">删除订单</view>
				<view class="" style="color:#fff ; border-color: #007A69; background-color: #007A69; width: 686rpx;"
					@click="applyAfterSales(list)">
					再来一单
				</view>
			</template>
		</view>
		<u-toast ref="uToast"></u-toast>

		<!-- 删除弹框 -->
		<u-modal :show="showdelete" :title="title1" :content='contented' showCancelButton="true" confirmText='确定'
			confirmColor='#007A69' @confirm="confirmed" @cancel='cancel'></u-modal>

	</view>

</template>

<script>
	export default {
		data() {
			return {
				titles: '订单详情',
				h: uni.getSystemInfoSync().windowHeight,
				mt: uni.getSystemInfoSync().statusBarHeight + 44,
				value: 1,
				status: 1,
				id: '',
				getalllist: '',
				bedData: {},
				arriveTime: '',
				arriveTimes: '',
				leaveTime: '',
				leaveTimes: '',
				count: '',
				orderId: '',
				price: '',
				form: {
					initiator: 2,
					orderCode: '',
					status: ''
				},
				num: 0,
				title: '温馨提示',
				checkInTimeStart: '',
				checkOutTime: '',
				FormData: {
					arriveDate: "", //	到达时间(yyyy-MM-dd)
					leaveDate: "", //离开时间(yyyy-MM-dd)
					limit: 10, //每页显示记录数
					page: 1, //当前页码
					name: "",
					islandId: '', //岛屿id
					priceSort: '', //价格排序: 1有高高低, 0由低到高
					featureLabels: '', //	特色服务(逗号分割):字典FeatureLabels
					category: '', //	酒店类别(逗号分割): 字典HotelCategory
				},
				departWeek: '',
				departWeeks: '',
				weeks: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
				checkInRooms: 0,
				areaList: [],
				foodTypeList: [],
				timeData: {},
				djsTime: 0,
				showdelete: false,
				orderType: null,
				delId: null,
				title1: '温馨提示',
				contented: '您确定要删除吗？确定删除将不可撤回！',
			}
		},
		async onLoad(option) {
			this.id = option.orderId;
			await this.getAddressList();
			await this.getFoodTypeList();
			this.getList()
		},
		methods: {
			// 取消
			cancel() {
				this.showdelete = false
			},
			deleteOrder() {
				this.showdelete = true
				// this.delId = item.orderCode
			},
			// 确定删除
			confirmed() {
				let orderCode = this.getalllist.orderCode
				this.$api.get('/api/merchant/food/logicDelOrder/' + orderCode).then((res) => {
					if (res.data.code == 0) {
						this.$showToast('删除成功');
						this.showdelete = false
						setTimeout(() => {
							uni.redirectTo({
								url: '/pagesMy/order/index?name=餐饮美食&type=0&typeIndex=6'
							})
						}, 300)
					} else {
						this.$showModal(res.data.msg);
						this.showdelete = false
						setTimeout(() => {
							uni.redirectTo({
								url: '/pagesMy/order/index?name=餐饮美食&type=0&typeIndex=6'
							})
						}, 300)
					}
				})
			},







			onChange(e) {
				this.timeData = e
			},
			// 获取区域
			getAddressList() {
				return new Promise((resolve, reject) => {
					this.$api.get("/api/hotel/selectScenicList").then((res) => {
						if (res.data.code === 0) {
							this.areaList = res.data.data;
							resolve();
						} else reject()
					});
				})
			},
			//获取美食字典
			getFoodTypeList() {
				return new Promise((resolve, reject) => {
					this.$api.get('/sys/dict/type/all').then(res => {
						if (res.data.code === 0) {
							this.foodTypeList = res.data.data.find(p => p.dictType == 'food_type')
								.dataList;
							resolve();
						} else reject()
					})
				})
			},
			copyOrderNo(item) {
				let that = this;
				// #ifdef H5
				this.$copyText(item.orderCode).then(res => {
					this.$showToast('复制成功');
				})
				// #endif
				// #ifdef MP-WEIXIN
				uni.setClipboardData({
					data: item.orderCode,
					success(res) {
						that.$showToast('复制成功');
					},
					fail(err) {
						that.$showToast('复制失败');
					}
				})
				// #endif
			},
			toEvaluate(item) {
				uni.navigateTo({
					url: '/pagesTrip/fineFood/fineFood/evaluate?list=' + JSON.stringify(this.getalllist)
				})
			},
			// 立即支付	
			pay() {
				var list = JSON.stringify({
					price: this.getalllist.orderAmount,
					orderId: this.orderId
				})
				this.$api.post('/order/icbc/createOrder', {
					orderCode: this.getalllist.orderCode,
					tradeType: 'JSAPI',
					openId: JSON.parse(uni.getStorageSync('userInfo')).openId
				}, false).then(res => {
					if (res.statusCode == 200 && res.data != null) {
						this.payShow = false;
						this.$wxPay(res.data).then(result => {
							uni.redirectTo({
								url: '/pagesTrip/hotel/paymentSuccess/index?list=' + list
							})
						})
					}
				})
			},
			// 拨打电话。
			phone() {
				uni.makePhoneCall({
					phoneNumber: this.getalllist.phone //仅为示例
				});
			},
			//取消订单
			cancelOrder() {
				let that = this;
				uni.showModal({
					title: '提示',
					content: '确定取消订单？',
					success: function(res) {
						if (res.confirm) {
							that.$api.post('/api/merchant/food/scenic/merchant/order/cancelFoodOrder', {
								orderCode: that.id,
							}).then(res => {
								if (res.data.code === 0) {
									that.$showToast('订单已取消');
									setTimeout(() => {
										uni.reLaunch({
											url: '/pagesMy/order/index?name=餐饮美食&type=0&typeIndex=6'
										})
									}, 1000)
								} else that.$showToast(res.data.msg)
							})

						}
					}
				});
			},
			// 申请退款
			GoRefund() {
				uni.redirectTo({
					url: "/pagesTrip/fineFood/fineFood/reformoney?list=" + JSON.stringify(this.getalllist)
				})
			},
			// 再次预定
			applyAfterSales(item) {
				// 初始化
				uni.navigateTo({
					url: '/pagesTrip/fineFood/fineFood/orderforgoods?list=' + JSON.stringify({
						...this.getalllist
					}) + '&cymsType=order'
				});
			},
			getList() {
				this.$api.get('/api/merchant/food/queryOrderDetail', {
						merchantCategory: 4,
						orderCode: this.id
					})
					.then(res => {
						this.getalllist = res.data.data;

						let diffMS = Date.parse(new Date()) - Date.parse(new Date(this.getalllist.createDate));
						if (diffMS < this.$gqTime) {
							this.djsTime = this.$gqTime - diffMS - 1000; //提前一秒，便于取消刷新
						}

						this.getalllist.guestPhoneCopy = this.$aesTm.tuomin(this.getalllist.guestPhone, 2)
						this.getalllist.foodTypeName = this.foodTypeList.find(f => f.dictValue == this.getalllist
								.foodType) ? this.foodTypeList.find(f => f.dictValue == this.getalllist.foodType)
							.dictLabel : ''
						this.getalllist.islandName = this.areaList.find(f => f.id == this.getalllist.islandId) ? this
							.areaList.find(f => f.id == this.getalllist.islandId).scenicName : ''

						let notices = JSON.parse(this.getalllist.notice);
						if (Array.isArray(notices) && notices.length > 0) {
							this.getalllist.noticeOne = notices[0].notice;
						} else this.getalllist.noticeOne = '';
					})
			},
			finish() {
				this.$api.post('/api/merchant/food/scenic/merchant/order/cancelFoodOrder', {
					orderCode: this.id,
				}).then(res => {
					if (res.data.code === 0) {
						setTimeout(() => {
							uni.reLaunch({
								url: '/pagesMy/order/index?name=餐饮美食&type=0&typeIndex=6'
							})
						}, 1000)
					} else this.$showModal(res.data.msg)
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.dingdanxinxi {

		.dingdanxinxi1 {
			display: flex;
			position: relative;

			.d_sqtk {
				width: 136rpx;
				height: 54rpx;
				border-radius: 27rpx;
				border: 1rpx solid #979797;
				line-height: 54rpx;
				text-align: center;
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				font-size: 26rpx;
				color: #808080;
				position: absolute;
				top: 50%;
				margin-top: -27rpx;
				right: 0;
			}

			.dingdanxinxi2 {
				width: 140rpx;
				height: 60rpx;
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				font-size: 28rpx;
				color: #808080;
				line-height: 60rpx;
				text-align: justify;
				font-style: normal;
			}

			.dingdanxinxi3 {
				flex-grow: 1;
				height: 60rpx;
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				font-size: 28rpx;
				color: #333333;
				line-height: 60rpx;
				text-align: justify;
				font-style: normal;
			}
		}
	}

	.chaoji {
		width: 100%;
		height: 40rpx;
		font-family: PingFang-SC, PingFang-SC;
		font-weight: bold;
		font-size: 40rpx;
		color: #1C1E41;
		line-height: 40rpx;
		text-align: left;
		font-style: normal;
		margin: 40rpx 0 0 0;
	}

	.goumai {
		position: fixed;
		bottom: 0rpx;
		left: 30rpx;
		background: #fff;
		width: 690rpx;
		height: 140rpx;
		margin: 0 auto;
		display: flex;
		align-items: center;
		justify-content: space-between;

		.goumai2 {
			width: 220rpx;
			height: 88rpx;
			background: #007A69;
			border-radius: 44px;
			font-family: PingFang-SC, PingFang-SC;
			font-weight: bold;
			font-size: 32rpx;
			color: #FFFFFF;
			line-height: 88rpx;
			text-align: center;
			font-style: normal;
		}

		.goumai1 {
			flex-grow: 1;
			height: 140rpx;
			display: flex;
			align-items: center;

			.zongji1 {
				height: 140rpx;
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				font-size: 24rpx;
				color: #666666;
				line-height: 140rpx;
				text-align: left;
				font-style: normal;
			}

			.zongji2 {
				height: 140rpx;
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				font-size: 24rpx;
				color: #FF4141;
				line-height: 140rpx;
				text-align: left;
				font-style: normal;
			}

			.zongji3 {
				height: 140rpx;
				font-family: DINAlternate, DINAlternate;
				font-weight: bold;
				font-size: 48rpx;
				color: #FF4141;
				line-height: 140rpx;
				text-align: left;
				font-style: normal;
				padding: 0 8rpx;
			}

			.zongji4 {}
		}
	}

	.canyu {
		width: 100%;
		display: flex;
		margin: 40rpx 0 40rpx 0;

		.canyu1 {
			width: 190rpx;
			border-radius: 16rpx;

			image {
				width: 100%;
				height: 100%;
				border-radius: 16rpx;
			}
		}

		.canyu2 {
			width: calc(100% - 190rpx);
			box-sizing: border-box;
			flex-grow: 1;

			.papdang1 {
				width: 100%;
				display: flex;

				.haixian2 {
					width: 56rpx;
					display: flex;
					justify-content: center;
					align-items: center;
				}

				.haixian1 {
					flex-grow: 1;

					.xhpd1 {
						width: 100%;
						font-family: PingFang-SC, PingFang-SC;
						font-weight: bold;
						font-size: 32rpx;
						color: #111111;
						line-height: 47.5rpx;
						text-align: left;
						font-style: normal;
						padding-left: 20rpx;
					}

					.xhpd2 {
						width: 100%;
						display: flex;
						align-items: center;
						padding-left: 20rpx;

						.xhpd2new {
							font-family: PingFangSC, PingFang SC;
							font-weight: 400;
							font-size: 24rpx;
							color: #777777;
							line-height: 47.5rpx;
							text-align: left;
							font-style: normal;
							padding-right: 20rpx;
						}
					}
				}
			}

			.papdang2 {
				display: flex;
				padding-left: 20rpx;

				.yingyez1 {
					width: 78rpx;
					font-family: PingFangSC, PingFang SC;
					font-weight: 400;
					font-size: 26rpx;
					color: #333333;
					line-height: 47.5rpx;
					text-align: justify;
					font-style: normal;
					padding-right: 10rpx;
				}

				.yingyez2 {
					flex-grow: 1;
					font-family: PingFangSC, PingFang SC;
					font-weight: 400;
					font-size: 26rpx;
					color: #333333;
					line-height: 47.5rpx;
					text-align: left;
					font-style: normal;
				}
			}

			.papdang3 {
				padding-left: 20rpx;
				display: flex;
				align-items: center;

				.dizhinew1 {
					width: 30rpx;
					display: flex;
					align-items: center;
					justify-content: center;
				}

				.dizhinew2 {
					flex-grow: 1;
					font-family: PingFangSC, PingFang SC;
					font-weight: 400;
					font-size: 26rpx;
					color: #333333;
					line-height: 47.5rpx;
					text-align: justify;
					font-style: normal;
				}
			}
		}

	}

	.yyyue1new {
		width: 100%;
		min-height: 55rpx;
		font-family: PingFangSC, PingFang SC;
		font-weight: 400;
		font-size: 26rpx;
		color: #111111;
		line-height: 55rpx;
		text-align: left;
		font-style: normal;
	}

	.xuzhinew {
		width: 100%;
		display: flex;
		margin: 30rpx 0;

		.xuzhi1new {
			width: 148rpx;
			height: 26rpx;
			font-family: PingFangSC, PingFang SC;
			font-weight: 400;
			font-size: 26rpx;
			color: #666666;
			line-height: 26rpx;
			text-align: left;
			font-style: normal;
		}

		.xuzhi2new {
			flex-grow: 1;
		}
	}

	.taocanlistnewmx1 {
		width: 460rpx;
		height: 26rpx;
		font-family: PingFangSC, PingFang SC;
		font-weight: 400;
		font-size: 26rpx;
		color: #111111;
		line-height: 26rpx;
		text-align: left;
		font-style: normal;
	}

	.wuyiyi {
		width: 750rpx;
		height: 20rpx;
		background: #F5F8FA;
	}

	.taocanmx {
		margin: 30rpx 0;

		.taocanlistmx {
			display: flex;

			.taocanlistmx1 {
				width: 460rpx;
				height: 50rpx;
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				font-size: 26rpx;
				color: #111111;
				line-height: 50rpx;
				text-align: left;
				font-style: normal;
			}

			.taocanlistmx2 {
				width: 150rpx;
				height: 50rpx;
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				font-size: 26rpx;
				color: #999999;
				line-height: 50rpx;
				text-align: center;
				font-style: normal;
			}

			.taocanlistmx3 {
				width: 80rpx;
				height: 50rpx;
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				font-size: 26rpx;
				color: #111111;
				line-height: 50rpx;
				text-align: right;
				font-style: normal;
			}
		}
	}

	.yyyue1 {
		width: 100%;
		height: 55rpx;
		font-family: PingFangSC, PingFang SC;
		font-weight: 400;
		font-size: 26rpx;
		color: #111111;
		line-height: 55rpx;
		text-align: left;
		font-style: normal;
	}

	.xuzhi {
		width: 100%;
		min-height: 130rpx;
		display: flex;

		.xuzhi1 {
			width: 90rpx;
			height: 55rpx;
			font-family: PingFangSC, PingFang SC;
			font-weight: 400;
			font-size: 26rpx;
			color: #666666;
			line-height: 55rpx;
			text-align: left;
			font-style: normal;
		}

		.xuzhi2 {
			flex-grow: 1;
		}
	}

	.basicInfo {
		width: 678rpx;
		margin: 0 auto;
		background: #fff;
		border-radius: 20rpx;
		padding: 20rpx;

		.chaoji {
			width: 100%;
			height: 40rpx;
			font-family: PingFang-SC, PingFang-SC;
			font-weight: bold;
			font-size: 40rpx;
			color: #1C1E41;
			line-height: 40rpx;
			text-align: left;
			font-style: normal;
			margin: 20rpx 0 40rpx 0;
		}

		.xianzhi {
			width: 100%;
			display: flex;
			// border-bottom: 1px solid #e6e6e6;
			margin-top: 40rpx;

			.xianzhi1 {
				width: 140rpx;
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				font-size: 26rpx;
				color: #666666;
				text-align: left;
				font-style: normal;
			}

			.xianzhi2 {
				flex-grow: 1;
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				font-size: 26rpx;
				color: #111111;
				text-align: left;
				font-style: normal;
			}

		}

	}

	.daoqi {
		height: 30rpx;
		font-family: PingFang-SC, PingFang-SC;
		font-weight: bold;
		font-size: 30rpx;
		color: #111111;
		line-height: 30rpx;
		text-align: center;
		font-style: normal;
	}

	.erweima {
		width: 100%;
		height: 340rpx;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.pjm {
		display: flex;

		.pjm1 {
			height: 32rpx;
			font-family: PingFang-SC, PingFang-SC;
			font-weight: bold;
			font-size: 32rpx;
			color: #111111;
			line-height: 32rpx;
			text-align: center;
			font-style: normal;
		}

		.pjm2 {
			height: 32rpx;
			font-family: PingFangSC, PingFang SC;
			font-weight: 400;
			font-size: 24rpx;
			color: #AAAAAA;
			line-height: 32rpx;
			text-align: left;
			font-style: normal;
			padding-left: 20rpx;
		}
	}

	.ticketInfonmb {
		box-sizing: border-box;
		width: 96%;
		margin: 0 auto 20rpx;
		padding: 10rpx 24rpx;
		border-radius: 20rpx;
		position: relative;
		background-color: #fff;
		z-index: 2;
	}

	.taocan {
		width: 690rpx;
		height: 226rpx;

		border-radius: 20px;
		background: #fff;
		display: flex;
		align-items: center;

		.taocan1 {
			width: 150rpx;
			height: 150rpx;
			border-radius: 16rpx;

			//margin-left: 20rpx;
			image {
				width: 100%;
				height: 100%;
				border-radius: 16rpx;
			}
		}

		.taocan2 {
			flex-grow: 1;
			height: 168rpx;

			.taoxxq1 {
				height: 52rpx;
				font-family: PingFang-SC, PingFang-SC;
				font-weight: bold;
				font-size: 32rpx;
				color: #111111;
				line-height: 52rpx;
				text-align: left;
				font-style: normal;
				padding-left: 20rpx;
			}

			.taoxxq2 {
				height: 50rpx;
				font-family: PingFangSC, PingFang SC;
				font-weight: 400;
				font-size: 24rpx;
				color: #777777;
				line-height: 50rpx;
				text-align: left;
				font-style: normal;
				padding-left: 20rpx;
			}

			.taoxxq3 {
				height: 66rpx;
				display: flex;
				justify-content: space-between;
				align-items: center;

				.jiage1 {
					flex-grow: 1;
					height: 66rpx;
					font-family: PingFangSC, PingFang SC;
					font-weight: 500;
					font-size: 40rpx;
					color: #FF3E3E;
					line-height: 66rpx;
					text-align: left;
					font-style: normal;

					span {
						width: 24rpx;
						height: 66rpx;
						font-family: PingFangSC, PingFang SC;
						font-weight: 400;
						font-size: 24rpx;
						color: #FF3E3E;
						line-height: 66rpx;
						text-align: left;
						font-style: normal;
						padding-left: 20rpx;
					}
				}

				.right {
					width: 190rpx;
					height: 66rpx;
					display: flex;
					align-items: center;

					.icon {
						width: 44rpx;
						height: 44rpx;
						vertical-align: middle;
					}

					.number {
						font-size: 36rpx;
						vertical-align: middle;
						margin: 0 30rpx;
					}
				}
			}

		}
	}



	.bottom-list {
		display: flex;
		margin: 37rpx auto;
		justify-content: center;

		.image {
			width: 36rpx;
			height: 36rpx;
			margin: 0 8rpx;

			image {
				width: 100%;
				height: 100%;
			}
		}

		.text {
			font-size: 26rpx;
			color: #999999;
			font-weight: Regular;
		}
	}

	.minus,
	.plus {
		display: flex;
		align-items: center;
		// width: 44rpx;
		// height: 44rpx;
		// line-height: 44rpx;
		padding: 10rpx 10rpx;
		// padding-left: 8rpx;

		border: 1px solid #999;
		border-radius: 6rpx;
		text-align: center;
	}

	.page {
		box-sizing: border-box;
		background-color: #F5F8FA;


		.content {
			position: relative;
			z-index: 3;
			padding-bottom: 160rpx;

			.hand-title {
				position: absolute;
				left: 20rpx;
				top: 100rpx;
				font-size: 24rpx;
				color: #fff;
				display: flex;
				align-items: center;
			}
		}

	}

	.bg {
		height: 700rpx;
		position: fixed;
		// top: 44px;
		z-index: 1;
		width: 100%;
		background-image: linear-gradient(to bottom, #007A69, #007A69, #F5F8FA);
	}

	.ticketInfo-demo {
		// border-bottom: 2rpx solid #EFEFEF;
		margin-top: 40rpx;

		.demo-layout {
			display: flex;
			align-items: center;
			text-align: center;
			margin: 0 80rpx;
		}
	}

	.two-center-two {
		box-sizing: border-box;

		.tit {
			font-size: 32rpx;
			color: #333333;
			margin: 20rpx 0;
		}

		.df-one {
			font-size: 32rpx;
			color: #333333;
			font-weight: bold;

			// .bg-purple-dark {
			// 	margin-left: 140rpx;
			// }

			// .demo-layout {
			// 	margin-left: 30rpx;
			// }
		}

		.df-two {
			// border-bottom: 2rpx solid #EFEFEF;

			.bg-purple {
				// margin-right: 100rpx;
				width: 182rpx;
				margin-left: -13rpx;
			}

			.bg-purple-dark {
				// margin-left: 50rpx;
			}

			.bg-purple,
			.bg-purple-dark {
				font-size: 26rpx;
				color: #777777;
				font-weight: Regular;
				text-align: center;

				text {
					margin: 0 8rpx;
				}
			}

			.bg-purple-light {
				font-size: 24rpx;
				color: #666666;
				border: 1rpx solid #666666;
				text-align: center;
				border-radius: 50rpx;
			}

		}
	}


	.prices-content {
		margin: 24rpx 0;

		.txt1 {
			font-size: 32rpx;
			color: #111111;
			font-weight: bold;
		}

		.txt2 {
			margin: 12rpx 0;
			font-size: 26rpx;
			color: #777777;
			font-weight: Regular;
		}

	}



	.orderInfo {
		box-sizing: border-box;
		background-color: #fff;
		border-radius: 16rpx;
		width: 96%;
		margin: 0 auto 20rpx;

		.tit {
			font-size: 32rpx;
			color: #333;
			padding-left: 30rpx;
			padding-top: 40rpx;
			font-weight: 600;
			margin-bottom: 20rpx;
		}

		.txt {
			font-size: 28rpx;
			color: #666;
			width: 115rpx;
		}

		.icon {
			font-size: 28rpx;
			color: #666;
		}

		.val {
			font-size: 28rpx;
			color: #666;
			margin: 0 20rpx 0 30rpx;
		}

		.nums {
			display: flex;
			justify-content: space-between;
			// border-bottom: 1rpx solid #f0f2f5;
			padding: 0 24rpx;

			.input {
				margin: 0 30rpx;
				font-size: 28rpx;
			}

			text {
				margin: 20rpx 0;

				&:nth-child(1) {
					font-size: 28rpx;
					color: #333;
					font-weight: 400;
				}

				&:nth-child(3) {
					font-size: 36rpx;
					color: #FF4141;
					margin-right: 40rpx;
				}

				&.icon {
					display: inline-block;
					width: 100rpx;
					flex: 1;
					text-align: right;
					padding-top: 12rpx;
				}
			}

			// .minus,
			// .plus {
			// 	width: 44rpx;
			// 	height: 44rpx;
			// 	line-height: 44rpx;
			// 	padding: 11rpx 9rpx;
			// 	border: 1px solid #999;
			// 	border-radius: 6rpx;
			// }

			.plus {
				background-color: #0EBFFE;
				border-color: #0EBFFE;
			}

		}

	}

	.ticketInfo {
		box-sizing: border-box;
		width: 96%;
		margin: 0 auto 20rpx;
		padding: 44rpx 24rpx;
		border-radius: 20rpx;
		position: relative;
		background-color: #fff;
		z-index: 2;

		.ticketInfo-hander {
			display: flex;

			.image {
				width: 130rpx;
				height: 136rpx;
				border-radius: 12rpx;
				margin-right: 20rpx;

				image {
					width: 100%;
					height: 100%;
				}
			}

		}

		.name {
			font-size: 32rpx;
			color: #333;
			font-weight: bold;
			width: 100%;
		}

		.date {
			// padding: 20rpx 0 32rpx;
			padding-top: 40rpx;

			text {
				font-size: 26rpx;

				&:nth-child(1) {
					color: #808080;
				}

				&:nth-child(2) {
					color: #FF7D01;
					margin-left: 30rpx;
				}
			}
		}



		.topHead {
			width: 96%;
			margin: 0 auto;
			background-color: #F5F8FA;
			padding: 28rpx 0 28rpx 84rpx;
			border-radius: 16rpx;
			position: relative;

			text {
				position: absolute;
				left: 0;
				top: 0;
				z-index: 1;
				border-radius: 16rpx 0 0 16rpx;
				width: 48rpx;
				color: #fff;
				font-size: 20rpx;
				background-color: #484F61;
				text-align: center;
				height: 100%;
				padding: 15rpx 10rpx 0;

			}

			.p {
				font-size: 28rpx;
				color: #333;

				&:nth-of-type(1) {
					font-weight: 600;
					margin-bottom: 16rpx;
				}
			}


		}

		.code {
			margin-top: 40rpx;
			text-align: center;
			position: relative;

			.cover,
			.sx {
				position: absolute;
				background-color: rgba(255, 255, 255, 0.5);
				width: 340rpx;
				height: 340rpx;
				top: 66rpx;
				left: 50%;
				transform: translate(-50%, 0);
			}

			.sx {
				width: 120rpx;
				height: 120rpx;
				top: 150rpx;
				background: transparent;
			}

			.txt {
				font-size: 28rpx;
			}

			image {
				width: 340rpx;
				height: 340rpx;
				margin: 30rpx 0;
			}
		}
	}

	.head {
		box-sizing: border-box;
		padding: 34rpx 24rpx 60rpx;
		display: flex;
		position: relative;
		z-index: 2;

		text {
			color: #fff;

			&:nth-child(1),
			&:nth-child(3) {
				font-size: 44rpx;
				font-weight: bold;
			}

			&:nth-child(2) {
				flex: 1;
				text-align: right;
				width: 100px;
				font-size: 36rpx;
			}
		}
	}


	.btns {
		box-sizing: border-box;
		width: 100%;
		position: fixed;
		bottom: 0;
		z-index: 4;
		left: 0;
		display: flex;
		padding: 32rpx 32rpx 50rpx;
		background-color: #fff;
		gap: 0 20rpx;
		box-shadow: 0 -8rpx 16rpx rgba(0, 0, 0, 0.06);


		&>view {
			width: calc(50% - 15rpx);
			height: 80rpx;
			border-radius: 46rpx;
			// border: 1rpx solid #999999;
			line-height: 80rpx;
			text-align: center;
			font-size: 28rpx;
			font-family: PingFangSC-Regular, PingFang SC;
			font-weight: Bold;
			color: #111111;
			background-color: #F6F6F6;
		}
	}
</style>